package meterMonitor.mapper;

import meterMonitor.framework.context.CurrentUser;
import meterMonitor.model.User;

import java.util.List;

public interface UserMapper {
    int deleteByPrimaryKey(Long pkid);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Long pkid);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User loginQuery(User record);

    void addUser(CurrentUser currentUser);

    List<User> selectAllUser();

    void deleteLoginName(String loginName);

    void updateByLoginNameSelective(User user);

    List<String> selectAllLoginName();
}